package com.teamwork.module01.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.teamwork.common.entity.module01.Class;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

public interface ClassMapper extends BaseMapper<Class> {


    //根据班级id查询人数
    @Select("select number from tb_module01_class where id = #{id}")
    Integer getNumberById(@Param("id") Integer id);
}
